const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app) {
  app.use(
    '/app-api',
    createProxyMiddleware({
      target: 'https://innermall-dev.proya.com',
      changeOrigin: true,
      pathRewrite: { '^/app-api': '/app-api' },
    })
  );
};